package tech.smartboot.redisun.cmd;

import tech.smartboot.redisun.resp.BulkStrings;
import tech.smartboot.redisun.resp.RESP;

import java.util.List;

/**
 * @author 三刀
 * @version v1.0 10/23/25
 */
public class DelCommand extends Command {
    private final List<String> key;

    public DelCommand(List<String> key) {
        this.key = key;
    }

    @Override
    protected void addParams(List<BulkStrings> param) {
        param.add(RESP.ofString("DEL"));
        for (String s : key) {
            param.add(RESP.ofString(s));
        }
    }
}
